<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        window.age = 10086;
        let obj = {
            name: "摩卡",
            age: 2,
            getName: () => {
                // this指向 window
                console.log(this.age);  // undefined
            }
        }

        obj.getName() // 摩卡
    </script>
</body>

</html>